package com.systemic.mapper;

import com.systemic.pojo.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName: SubjectMapper
 * @Description: 话题mapper
 * @Author:
 * @CreateTime: 2024-01-16 12:31
 * @Version:
 **/
@Mapper
public interface SubjectMapper extends BaseMapper<Subject> {

    /**
     * 指定查询
     * @param id
     * @return
     */
    Subject selectById(@Param("id") Integer id);

    /**
     * 根据话题id删除
     * @param id
     * @return
     */
    int deleteById(@Param("id") Integer id);

}
